package xin.marcher.wind.process.test.processor;

import xin.marcher.wind.process.processor.AbstractDynamicProcessor;
import xin.marcher.wind.process.processor.ProcessContext;

/**
 * @author marcher
 */
public class DynamicProcessorDemo extends AbstractDynamicProcessor {

    private String id;

    private String nextId;

    public DynamicProcessorDemo(String id, String nextId) {
        this.id = id;
        this.nextId = nextId;
    }

    @Override
    protected void processInternal(ProcessContext context) {
        System.out.println("DynamicProcess " + id);
    }

    @Override
    protected String nextNodeId(ProcessContext context) {
        return nextId;
    }
}
